﻿/* ===================================尊重原著======================================
 * 创 建 者：mao xiao jun 
 * 创建日期：2021-12-12
 * CLR Version : any
 * ===================================尊重原著=====================================*/
using System;
using System.Collections.Generic;
using System.IO;
using System.Text;

namespace MTP
{
    public interface IMtpService
    {
        event Func<Stream, string, Stream> OnReceiveEvent;
        event Action<Guid, Exception> OnErrorEvent;

        IMtpService OnError(Action<Guid, Exception> onErrorEvent);
        IMtpService OnReceive(Func<Stream, string, Stream> onReceiveEvent);
        void Start();
        void StartSync();
        void Stop();
    }
}
